<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.selectWidth2 {
	width: 190px;
}

.selectWidth1 {
	width: 298px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar">&nbsp;项目基本信息</td>
	</tr>
	<tr>
		<td nowrap width="100px" align="right"><span class="color_red">*</span>项目名称：</td>
		<td nowrap colspan="5"><input id="zh_title"
			name="proposal/zh_title" label="项目名称" type="text"
			class="input_css required maxlength:50" style="width: 715px;"
			maxlength="50"
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>申报日期：</td>
		<td nowrap colspan="5"><c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" className="required date" label="申报日期"></cpt:date>&nbsp;
		</td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="incubator" cellspacing="1">
	<tr>
		<td colspan="6" class="t_bar">&nbsp;孵化器基本情况</td>
	</tr>
	<tr>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>孵化器名称：</td>
		<td nowrap colspan="3"><input name="incubator/cname"
			label="孵化器名称" type="text" class="input_css required"
			style="width: 435px;" maxlength="50"
			value="<x:out select="$xmlData/data/incubator/cname" />" /></td>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>组建期：</td>
		<td nowrap><input name="incubator/date" label="组建期" type="text"
			required class="input_css required "
			style="width: 140px;" maxlength="50"
			value="<x:out select="$xmlData/data/incubator/date" />" /></td>

	</tr>
	<tr>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>地址：</td>
		<td nowrap><input name="incubator/address" label="地址"
			type="text" class="input_css required" style="width: 140px;"
			maxlength="50"
			value="<x:out select="$xmlData/data/incubator/address" />" /></td>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>场地面积：</td>
		<td nowrap><input name="incubator/cd_area" label="场地面积" type="text"
			required class="input_css required"
			style="width: 140px; text-align: right"
			onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/incubator/cd_area" />" />平方米</td>
		<td nowrap align="right" width="100px"><span class="color_red">*</span>在孵企业数：</td>
		<td nowrap><input name="incubator/sum" label="在孵企业数" type="text"
			required class="input_css required"
			style="width: 140px; text-align: right"
			onfocus="InitInput.setNumber(this,7,0,0)"
			value="<x:out select="$xmlData/data/incubator/sum" />" />家</td>
	</tr>
	 <tr>
		<td nowrap align="right" valign="middle"><span class="color_red">*</span>机构类型：</td>
		<td nowrap colspan="5" valign="middle"><label> <input
				type="radio" class="do " id="advant_01"
				style="vertical-align: middle;" name="advant" label="园区管理机构"
				value="01" /><span style="vertical-align: middle;">园区管理机构</span>
		</label> <label> <input type="radio" class="do " id="advant_02"
				style="vertical-align: middle;" name="advant" label="知识服务机构"
				value="02" /><span style="vertical-align: middle;">知识服务机构</span>
		</label> 
		<input type="hidden" name="proposal/basic/advant_value" id="advant_value" class="required"
			value="<x:out select="$xmlData/data/proposal/basic/advant_value" />"
			label="机构类型" /> 
	<input type="hidden" name="proposal/basic/advant_name" id="advant_name"
			value="<x:out select="$xmlData/data/proposal/basic/advant_name" />"
			label="机构类型" /></td>
	</tr>
</table>
<br>
<div class="t_bar">
	<span class="color_red">*</span>人员配备情况（单位：人）
</div>
<table border="0" cellspacing="0" cellpadding="0" class="t_css table01" id="incubators">
	<thead>
		<tr>
			<td align="center" nowrap>总数</td>
			<td colspan="5" align="left">&nbsp;&nbsp;<input name="incubator/people_count_total" id="people_count_total"
				style="width: 140px; text-align: right" class="input_css required valueGreatEqual:people_count_total:people_count_hj" 
				label="人员配备情况总数"
				onfocus="InitInput.setNumber(this,7,0,0)" 
				value="<x:out select="$xmlData/data/incubator/people_count_total" />" />
				<input type="hidden" name="incubator/people_count_hj" id="people_count_hj"
				style="width: 140px; text-align: right" class="input_css gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)" 
				label="专业人员与管理人员各项之和"
				value="<x:out select="$xmlData/data/incubator/people_count_hj" />" /></td>
		</tr>
		<tr>
			<th align="center" nowrap>&nbsp;</th>
			<th align="center" nowrap>博士或高级职称</th>
			<th align="center" nowrap>硕士或中级职称</th>
			<th align="center" nowrap>本科</th>
			<th align="center" nowrap>大专</th>
			<th align="center" nowrap>其他</th>
		</tr>
	</thead>
	<tbody id="tab">
   <tr>
			<td align="center">专业人员</td>
			<td align="center"><input name="incubator/people_zy_bs" id="people_zy_bs"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
			    onchange="countNum('people_','zy_bs,gl_bs','total_bs');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_zy_bs" />" /></td>
			<td align="center"><input name="incubator/people_zy_ss" id="people_zy_ss"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_ss,gl_ss','total_ss');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_zy_ss" />" /></td>
			<td align="center"><input name="incubator/people_zy_bk" id="people_zy_bk"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)" 
				onchange="countNum('people_','zy_bk,gl_bk','total_bk');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_zy_bk" />" /></td>
			<td align="center"><input name="incubator/people_zy_dz" id="people_zy_dz"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_dz,gl_dz','total_dz');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_zy_dz" />" /></td>
			<td align="center"><input name="incubator/people_zy_qt" id="people_zy_qt"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_qt,gl_qt','total_qt');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_zy_qt" />" /></td>
		</tr>
		<tr>
			<td align="center">管理人员</td>
			<td align="center"><input name="incubator/people_gl_bs" id="people_gl_bs"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_bs,gl_bs','total_bs');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_gl_bs" />" /></td>
			<td align="center"><input name="incubator/people_gl_ss" id="people_gl_ss"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
			    onchange="countNum('people_','zy_ss,gl_ss','total_ss');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_gl_ss" />" /></td>
			<td align="center"><input name="incubator/people_gl_bk" id="people_gl_bk"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)" 
				onchange="countNum('people_','zy_bk,gl_bk','total_bk');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_gl_bk" />" /></td>
			<td align="center"><input name="incubator/people_gl_dz" id="people_gl_dz"
				style="width: 140px; text-align: right" class="input_css "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_dz,gl_dz','total_dz');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_gl_dz" />" /></td>
			<td align="center"><input name="incubator/people_gl_qt" id="people_gl_qt"
				style="width: 140px; text-align: right" class="input_css  "
				onfocus="InitInput.setNumber(this,7,0,0)"
				onchange="countNum('people_','zy_qt,gl_qt','total_qt');countPeopleTotal();"
				value="<x:out select="$xmlData/data/incubator/people_gl_qt" />" /></td>
		</tr>
		<tr style="display:none">
			<td align="center">合计</td>
			<td align="center"><input name="incubator/people_total_bs" id="people_total_bs"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_total_bs" />" /></td>
			<td align="center"><input name="incubator/people_total_ss" id="people_total_ss"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_total_ss" />" /></td>
			<td align="center"><input name="incubator/people_total_bk" id="people_total_bk"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_total_bk" />" /></td>
			<td align="center"><input name="incubator/people_total_dz" id="people_total_dz"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_total_dz" />" /></td>
			<td align="center"><input name="incubator/people_total_qt" id="people_total_qt"
				style="width: 140px; text-align: right" class="input_css  gray" disabled
				onfocus="InitInput.setNumber(this,7,0,0)"
				value="<x:out select="$xmlData/data/incubator/people_total_qt" />" /></td>
		</tr>
	</tbody>
</table>
<script>
function countPeopleTotal(){
	var people_total_bs=$("#people_total_bs").val();
	var people_total_ss=$("#people_total_ss").val();
	var people_total_bk=$("#people_total_bk").val();
	var people_total_dz=$("#people_total_dz").val();
	var people_total_qt=$("#people_total_qt").val();
	if (!$.isNumeric(people_total_bs))
		people_total_bs = "0";
	if (!$.isNumeric(people_total_ss))
		people_total_ss = "0";
	if (!$.isNumeric(people_total_bk))
		people_total_bk = "0";
	if (!$.isNumeric(people_total_dz))
		people_total_dz = "0";
	if (!$.isNumeric(people_total_qt))
		people_total_qt = "0";
	var count =parseInt(people_total_bs,10)+parseInt(people_total_ss,10)+parseInt(people_total_bk,10)+parseInt(people_total_dz,10)+parseInt(people_total_qt,10);
	$("#people_count_hj").val(count);
	
	
}
</script>
